<?php
class Student {

    private function exam() {
        echo '正在考试'; // 具体功能的实现
    }

    public function test() {
        $this->exam();
    }

}